Skip to content

Conversation

@cclauss
Copy link
Contributor

@cclauss cclauss commented Dec 5, 2024

https://peps.python.org/pep-0621

Migrate settings from .coveragerc and .mypy.ini into pyproject.toml using ini2toml to do the file conversion and running pyproject-fmt to format the results.

ini2toml .mypy.ini > pyproject.toml
ini2toml .coveragerc >> pyproject.toml
pyproject-fmt pyproject.toml
git add pyproject.toml
git rm .coveragerc
git rm .mypy.ini

@cclauss cclauss changed the title PEP 621: Migrate .coveragerc and .mypy.ini into pyptoject.toml PEP 621: Migrate .coveragerc and .mypy.ini into pyproject.toml Dec 5, 2024
flake8-bugbear==22.9.23
flake8-unused-arguments==0.0.11
coverage==5.5
coverage[toml]==5.5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not seen this syntax before.. what does it mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pip extras syntax is broadly used... See example 7: https://pip.pypa.io/en/stable/cli/pip_install/#examples

https://coverage.readthedocs.io/en/latest/config.html#configuration-reference

Coverage.py will read from pyproject.toml if TOML support is available, either because you are running on Python 3.11 or later, or because you installed with the toml extra (pip install coverage[toml]).

@sbc100 sbc100 merged commit b48aedd into emscripten-core:main Dec 6, 2024
26 of 28 checks passed
@cclauss cclauss deleted the pyproject.toml branch December 6, 2024 20:39
hedwigz pushed a commit to hedwigz/emscripten that referenced this pull request Dec 18, 2024
…ipten-core#23089)

https://peps.python.org/pep-0621

Migrate settings from `.coveragerc` and `.mypy.ini` into
`pyproject.toml` using [ini2toml](https://pypi.org/project/ini2toml) to
do the file conversion and running
[pyproject-fmt](https://pypi.org/project/pyproject-fmt) to format the
results.
```bash
ini2toml .mypy.ini > pyproject.toml
ini2toml .coveragerc >> pyproject.toml
pyproject-fmt pyproject.toml
git add pyproject.toml
git rm .coveragerc
git rm .mypy.ini
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants